package com.yhhvip.order.dao;
import com.yhhvip.order.entity.CPicture;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CPictureDao extends JpaRepository<CPicture,Integer>,JpaSpecificationExecutor<CPicture> {

    @Query(value = " from CPicture cPicture where cPicture.commodityId = ?1 ")
    List<CPicture> selectfindCPi(Integer commodityId);

}
